﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using padnug.Domain;
using PadnugRepository;

namespace PadnugService
{
    public class PadnugSponsorService : IPadnugSponsorService
    {
        private PadnugSponsorsRepository repository;
        public PadnugSponsorService()
        {
            repository = new PadnugSponsorsRepository();
        }
        public IList<Sponsor> GetPremimumSponsors()
        {
            return repository.GetPremimumSponsors();
        }

        public IList<Sponsor> GetRegularSponsors()
        {
            return repository.GetRegularSponsors();
        }

        public IList<Sponsor> GetAllSponsors()
        {
            return repository.GetAllSponsors();
        }

        public void AddNewSponsor(Sponsor sponsor)
        {
            repository.AddNewSponsor(sponsor);
        }

        public void UpdateSponsor(Sponsor sponsor)
        {
            repository.UpdateSponsor(sponsor);
        }

        public void DeleteSponsor(Sponsor sponsor)
        {
            repository.DeleteSponsor(sponsor);
        }
    }

    public interface IPadnugSponsorService
    {
        IList<Sponsor> GetPremimumSponsors();
        IList<Sponsor> GetRegularSponsors();
        IList<Sponsor> GetAllSponsors();
        void AddNewSponsor(Sponsor sponsor);
        void UpdateSponsor(Sponsor sponsor);
        void DeleteSponsor(Sponsor sponsor);
    }
}
